<?php
namespace AuctionCore\AuctionOrder;


/**
* 签约功能 测试类
* @author       爱民
*/
class SignDispatchTest extends \PHPUnit_Framework_TestCase
{
	public function testSignFail(){
		//签约失败
		 $sig_info = array(
                        'remark'=>'签约失败！' //备注                        
                    );
		 $signDispatch = new SignDispatch(3);
		 $id = $signDispatch->sign_fail($sig_info,22);
		 $this->assertTrue(intval($id)>0);
	}

	public function testConTrace(){
		//签约继续跟踪
		$sig_info = array(
                        'transfer_proc'=>'1,3,5' //过户手续 
                        ,'next_trace_time'=>'2015-12-15 15:15:15' //签约时间
                        ,'remark'=>'签约继续跟踪' //备注                        
                    );
		$signDispatch = new SignDispatch(3);
		$id = $signDispatch->con_trace($sig_info,22);
		$this->assertTrue(intval($id)>0);
	}

	public function testSignSucess(){
		//签约成功
		$sig_info = array(
                        'transfer_proc'=>'1,3,5' //过户手续                        
                        ,'payee_name'=>'张于' //收款人姓名
                        ,'deposit_bank'=>'大地银行' //开户行
                        ,'payee_account'=>'张骗子' //收款人账号
                        ,'sign_datetime'=>'2015-12-18 18:18:18' //签约时间
                        ,'remark'=>'签约成功' //备注                        
                    );

		$signDispatch = new SignDispatch(3);
		$id = $signDispatch->sign_sucess($sig_info,22);
		$this->assertTrue(intval($id)>0);
	}

	public function testDispatch(){
		$signDispatch = new SignDispatch(3);
		$id = $signDispatch->dispatch(22,23,'测试签约分配');
		$this->assertTrue(intval($id)>0);
	}
	



}

?>